<?php

	include ('../inc/config.php');

	if (!isset($_SESSION["admin"])) {redirect("login.php");	exit(); }

	if(isset($_GET['listItem'])){ 
    	foreach($_GET['listItem'] as $clave=>$valor){
			$ok = $db->Execute("update slide_imagenes set orden='$clave' where id='$valor'");	    		
    	}
    	die();
	}
?>
